<div class="row-fluid">
  <div class="span12">
    <div class="lineBox right">
      <div class="inner">
        <a title="" data-toggle="tooltip" class="btn metaIcon" href="#" data-original-title="Home"><span class="entypo home"><i></i>Home</span></a>
        <a class="btn btn-icon left btn-primary" href="#"><span class="entypo pencil"><i></i></span>Нэхэмжлэх</a>
      </div>
    </div>
  </div>
</div>
<div class="pretty-table">
  <table>
    <thead>
      <tr>
        <th>№</th>      
        <th>Нэхэмжлэхийн дугаар</th>
        <th>Хичээлийн бүлэг</th>
        <th>Хичээлийн нэр</th>
        <th>Төлөв</th>
        <th>Төлсөн дүн</th>
        <th>Нэхэмжилсэн огноо</th>
        <th></th>
      </tr>
    </thead>
    <tbody>
        {% set counter = 1 %}
  {% for invoice in invoiceArray %}        
        <tr>
          <td>{{ counter }}</td>
          <td>{{ invoice.INVOICE_NUMBER }}</td>
          <td>{{ invoice.SUBJECT_CATEGORY_NAME }}</td>
          <td>{{ invoice.SUBJECT_NAME }}</td>
          <td>{% if invoice.IS_COMPLETED == 1 %} Төлсөн {% else %} Төлөөгүй {% endif %}</td>
          <td>{{ invoice.AMOUNT_PAID }}</td>
          <td>{{ invoice.CREATED_AT }}</td>
          <td><a href="{{path('invoiceShow',{'id':invoice.ID })}}">Үзэх</a></td>
        </tr>
    {% set counter = counter + 1 %}      
  {% endfor %}
      </tbody>
    </table>
  </div>
